<?php
/**
 * Introduction: 分享商品表  distribution
 * @author: 杨陈鹏
 * @date: 2016/4/08 03:04
 * @email: yangchenpeng@cdlinglu.com
 */

namespace Common\Model;


use Think\Model;

class DistributionModel extends Model
{
    //定义数据库连接信息
    protected $connection;
    //定义模型字段
    protected $fileds = [

        'id',
        'uid',
        'goods_id',
        'create_time',
        'click_nums',
        'buy_nums',
        'is_action',


    ];
    //定义表名
    protected $tableName = 'distribution';

    /**
     * 初始化
     */
    public function _initialize()
    {
        $this->connection = C('Databaese');
    }
}